package yunwo.cn.yzstation.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by lao on 2017/10/11.
 */

public class ItemlistBean implements Serializable {

    /**
     * code : 200
     * data : [{"freight":55,"weight":22,"beginOrganId":"03d9d3ed290342a885a98a38cec5078e","endOrganName":"长运南联","consignorName":"","consignorPhone":"","consigneeName":"乐乐","volume":0,"consignorAddress":"","endOrganId":"0da0bdc6f9b84545bde34f0fe936bf1b","goodsNumber":3,"consigneePhone":"","subTrackingNumber":"cykl200405-0003","trackingNumber":"cykl200405","beginOrganName":"长运柯莱","consigneeAddress":"","status":6},{"freight":55,"weight":22,"beginOrganId":"03d9d3ed290342a885a98a38cec5078e","endOrganName":"长运南联","consignorName":"","consignorPhone":"","consigneeName":"乐乐","volume":0,"consignorAddress":"","endOrganId":"0da0bdc6f9b84545bde34f0fe936bf1b","goodsNumber":3,"consigneePhone":"","subTrackingNumber":"cykl200405-0002","trackingNumber":"cykl200405","beginOrganName":"长运柯莱","consigneeAddress":"","status":6},{"freight":55,"weight":22,"beginOrganId":"03d9d3ed290342a885a98a38cec5078e","endOrganName":"长运南联","consignorName":"","consignorPhone":"","consigneeName":"乐乐","volume":0,"consignorAddress":"","endOrganId":"0da0bdc6f9b84545bde34f0fe936bf1b","goodsNumber":3,"consigneePhone":"","subTrackingNumber":"cykl200405-0001","trackingNumber":"cykl200405","beginOrganName":"长运柯莱","consigneeAddress":"","status":6},{"freight":20,"weight":0,"beginOrganId":"03d9d3ed290342a885a98a38cec5078e","endOrganName":"杭州","consignorName":"","consignorPhone":"","consigneeName":"样","volume":15,"consignorAddress":"","endOrganId":"d645195c4fb54a7e9f78e2826cc6983a","goodsNumber":1,"consigneePhone":"","subTrackingNumber":"cykl200424-0001","trackingNumber":"cykl200424","beginOrganName":"长运柯莱","consigneeAddress":"","status":6},{"freight":20,"weight":20,"beginOrganId":"03d9d3ed290342a885a98a38cec5078e","endOrganName":"利泰","consignorName":"","consignorPhone":"","consigneeName":"裘建伟","volume":0,"consignorAddress":"","endOrganId":"2c030740c0d5493b9bdc0cc81073e94d","goodsNumber":1,"consigneePhone":"18588884444","subTrackingNumber":"cykl200474-0001","trackingNumber":"cykl200474","beginOrganName":"长运柯莱","consigneeAddress":"利泰","status":6},{"freight":40,"weight":40,"beginOrganId":"03d9d3ed290342a885a98a38cec5078e","endOrganName":"常熟","consignorName":"","consignorPhone":"","consigneeName":"王二两","volume":0,"consignorAddress":"","endOrganId":"f71e49becc98422bafad733e0cf5b5e2","goodsNumber":1,"consigneePhone":"52748685","subTrackingNumber":"cykl200374-0001","trackingNumber":"cykl200374","beginOrganName":"长运柯莱","consigneeAddress":"招商3-45","status":6},{"freight":40,"weight":20,"beginOrganId":"03d9d3ed290342a885a98a38cec5078e","endOrganName":"七浦路","consignorName":"","consignorPhone":"","consigneeName":"陈刚","volume":0,"consignorAddress":"","endOrganId":"820ecb7ad3db4d1991000f6ad4b19e4c","goodsNumber":1,"consigneePhone":"13818651922","subTrackingNumber":"cykl200413-0001","trackingNumber":"cykl200413","beginOrganName":"长运柯莱","consigneeAddress":"","status":6}]
     * msg : SUCCESS
     */

    private int code;
    private String msg;
    private List<DataBean> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Serializable{
        /**
         * freight : 55
         * weight : 22
         * beginOrganId : 03d9d3ed290342a885a98a38cec5078e
         * endOrganName : 长运南联
         * consignorName :
         * consignorPhone :
         * consigneeName : 乐乐
         * volume : 0
         * consignorAddress :
         * endOrganId : 0da0bdc6f9b84545bde34f0fe936bf1b
         * goodsNumber : 3
         * consigneePhone :
         * subTrackingNumber : cykl200405-0003
         * trackingNumber : cykl200405
         * beginOrganName : 长运柯莱
         * consigneeAddress :
         * status : 6
         */

        private int freight;
        private int weight;
        private String beginOrganId;
        private String endOrganName;
        private String consignorName;
        private String consignorPhone;
        private String consigneeName;
        private Double volume;
        private String consignorAddress;
        private String endOrganId;
        private int goodsNumber;
        private String consigneePhone;
        private String subTrackingNumber;
        private String trackingNumber;
        private String beginOrganName;
        private String consigneeAddress;
        private int status;

        public int getFreight() {
            return freight;
        }

        public void setFreight(int freight) {
            this.freight = freight;
        }

        public int getWeight() {
            return weight;
        }

        public void setWeight(int weight) {
            this.weight = weight;
        }

        public String getBeginOrganId() {
            return beginOrganId;
        }

        public void setBeginOrganId(String beginOrganId) {
            this.beginOrganId = beginOrganId;
        }

        public String getEndOrganName() {
            return endOrganName;
        }

        public void setEndOrganName(String endOrganName) {
            this.endOrganName = endOrganName;
        }

        public String getConsignorName() {
            return consignorName;
        }

        public void setConsignorName(String consignorName) {
            this.consignorName = consignorName;
        }

        public String getConsignorPhone() {
            return consignorPhone;
        }

        public void setConsignorPhone(String consignorPhone) {
            this.consignorPhone = consignorPhone;
        }

        public String getConsigneeName() {
            return consigneeName;
        }

        public void setConsigneeName(String consigneeName) {
            this.consigneeName = consigneeName;
        }

        public Double getVolume() {
            return volume;
        }

        public void setVolume(Double volume) {
            this.volume = volume;
        }

        public String getConsignorAddress() {
            return consignorAddress;
        }

        public void setConsignorAddress(String consignorAddress) {
            this.consignorAddress = consignorAddress;
        }

        public String getEndOrganId() {
            return endOrganId;
        }

        public void setEndOrganId(String endOrganId) {
            this.endOrganId = endOrganId;
        }

        public int getGoodsNumber() {
            return goodsNumber;
        }

        public void setGoodsNumber(int goodsNumber) {
            this.goodsNumber = goodsNumber;
        }

        public String getConsigneePhone() {
            return consigneePhone;
        }

        public void setConsigneePhone(String consigneePhone) {
            this.consigneePhone = consigneePhone;
        }

        public String getSubTrackingNumber() {
            return subTrackingNumber;
        }

        public void setSubTrackingNumber(String subTrackingNumber) {
            this.subTrackingNumber = subTrackingNumber;
        }

        public String getTrackingNumber() {
            return trackingNumber;
        }

        public void setTrackingNumber(String trackingNumber) {
            this.trackingNumber = trackingNumber;
        }

        public String getBeginOrganName() {
            return beginOrganName;
        }

        public void setBeginOrganName(String beginOrganName) {
            this.beginOrganName = beginOrganName;
        }

        public String getConsigneeAddress() {
            return consigneeAddress;
        }

        public void setConsigneeAddress(String consigneeAddress) {
            this.consigneeAddress = consigneeAddress;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }
/* private int freight;
        private int weight;
        private String beginOrganId;
        private String endOrganName;
        private String consignorName;
        private String consignorPhone;
        private String consigneeName;
        private int volume;
        private String consignorAddress;
        private String endOrganId;
        private int goodsNumber;
        private String consigneePhone;
        private String subTrackingNumber;
        private String trackingNumber;
        private String beginOrganName;
        private String consigneeAddress;
        private int status;*/
        @Override
        public boolean equals(Object obj) {
            if (obj instanceof ItemlistBean.DataBean) {
                DataBean obj1 = (DataBean) obj;
                return

                        /**
                         * consigneeName : 方传平
                         * volume : 0
                         * endOrganId : 820ecb7ad3db4d1991000f6ad4b19e4c
                         * freight : 225
                         * goodsNumber : 8
                         * weight : 225
                         * beginOrganId : 03d9d3ed290342a885a98a38cec5078e
                         * endOrganName : 七浦路
                         * subTrackingNumber : cykl200359-0003
                         * trackingNumber : cykl200359
                         * beginOrganName : 长运柯莱
                         */
                           this.beginOrganId.equals(obj1.beginOrganId)
                        && this.freight ==obj1.freight
                        && this.weight == obj1.weight



                        && this.subTrackingNumber.equals(obj1.subTrackingNumber)
                        && this.trackingNumber.equals(obj1.trackingNumber)


                        && this.status == obj1.status;

            }
            return super.equals(obj);
        }


        /*    @Override
    public boolean equals(Object o) {
        if (o instanceof QuestionInfo) {
            QuestionInfo question = (QuestionInfo) o;
            return this.questionId.equals(question.questionId)
                    && this.subQuestionId.equals(question.subQuestionId)
                    && this.answerId.equals(question.answerId)
                    && this.result.equals(question.result);
        }
        return super.equals(o);
    }  */
    }
}
